﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CompilerLib.Scanner
{
    public sealed class SymbolExpression : RegularExpression
    {
        public Char InnerSymbol { get; private set; }
        public SymbolExpression(char symbol)
        {
            InnerSymbol = symbol;
        }
        public override string ToString()
        {
            return InnerSymbol.ToString();
        }

        internal override T Accept<T>(RegularExpressionConverter<T> converter)
        {
            return converter.ConvertSymbol(this);
        }
    }
}
